import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { MongooseModule } from "@nestjs/mongoose";
import { RoleModule } from './role/role.module';
import { ArticleModule } from './article/article.module';
import { UserModule } from './user/user.module';
import { TagModule } from './tag/tag.module';
import { CommentModule } from './comment/comment.module';

@Module({
  imports: [
    MongooseModule.forRoot("mongodb://localhost:27017/wujimin"),
    RoleModule,
    ArticleModule,
    UserModule,
    TagModule,
    CommentModule,
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
